package com.sample.library.portlet.book;

import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.web.portlet.ModelAndView;
import org.springframework.web.portlet.mvc.AbstractController;

import com.liferay.portal.kernel.util.ParamUtil;

public class ViewAuthorController extends AbstractController implements InitializingBean{

	@Override
	public void afterPropertiesSet() throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public ModelAndView handleRenderRequest(RenderRequest request,
			RenderResponse response) throws Exception {
		ModelAndView view = new ModelAndView("author/view");
		String action = ParamUtil.getString(request, "action");
		
		if( action != null && action.equals("viewAuthor")) {
			
		}
		return view;
	}
}
